package com.congwulin.wechat.service;

import com.congwulin.wechat.entity.UserForWeChat;
import com.congwulin.wechat.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserManageService {
    @Autowired
    private UserRepository userRepository;

    public void save(UserForWeChat user) {

        userRepository.save(user);

    }

    public UserForWeChat findByName(String name) {
        return this.findByName(name);
    }
}
